﻿<div id="sidebar">
	
    <div id="search" class="widget">
        <h1>Search Box</h1>
        <form action="/index.aspx" class="searchform" method="post">
        <p>
            <input name="search_query" class="textbox" type="text" />
            <input name="search" class="button" value="Search" type="submit" />
        </p>
        </form>
    </div>
    <div id="Misc" class="widget">
        <h1>Misc</h1>
	    <ul class="sidemenu">				
		    <li><a href="">个人维基</a></li>
		    <li><a href="#TemplateInfo">读书笔记</a></li>
		    <li><a href="#SampleTags">程序感悟</a></li>
	    </ul>	
    </div>
    <div id="wisewords" class="widget">
     <h1>Wise Words</h1>
			<p>&quot;刺客, 一个很有传奇色彩的名字,最强的执行力,
			最强的单兵作战能力,以一敌百的勇气,以一抵万的效率,身先士卒的魄力.&quot; </p>
					
			<p class="align-right">- BangQ</p>
    </div>
    <div id="categories" class="widget">
        <h3>Categories</h3>
        <ul>
        #foreach($item in $categories)
            <li><span>$!base.getPostCatagoryLink($item.id)(${item.count})</span></li>
        #end
        </ul>
    </div>
    <div id="recentposts" class="widget">
        <h3>Recent Posts</h3>
        <ul>
        #foreach($item in ${recentposts})
            <li><a href="$base.Url("/Post.aspx?id=${item.ID}")" title="${item.title}">${item.title}</a></li>
        #end
        </ul>
    </div>
    <div id="recentcomments" class="widget">
        <h3>Recent Comments</h3>
        <ul>
        #foreach($item in $recentcomments)
            <li><a href="${item.url}" title="${item.name} 发表于 ${item.createdate}">${item.title}</a></li>
        #end
        </ul>
    </div>
    <div id="archives" class="widget">
        <h3>Archives</h3>
        <ul>
        #foreach($item in $archives)
            <li><a href="${item.url}" title="">${item.date.tostring("yyyy年MM月")}</a><span>(${item.count})</span></li>
        #end
        </ul>
    </div>
    <div id="recenttags" class="widget">
        <h3>Tags</h3>
        <ul>
        #foreach($item in $recenttags)
            <li><span>$!base.getPostTagsLink($item.id)(${item.count})</span></li>
        #end
        </ul>
    </div>
    <div id="generallinks" class="widget">
        <h3>Links</h3>
        <ul>
        #foreach($item in $generallinks)
            <li><a href="${item.Href}" title="${item.description}" target="${item.target}">${item.name}</a></li>
        #end
        </ul>
    </div>
    <div  id="statistics" class="widget">
        <h3>Statistics</h3>
        <ul>
            <li>文章:<span>${postcount} 篇</span></li>
            <li>评论:<span>${commentcount} 条</span></li>
            <li>作者:<span>${authorcount} 位</span></li>
            <li>用户:<span>${usercount} 位</span></li>
            <li>访问:<span>${viewcount} 次</span></li>
            <li>订阅:<span><a href="${feedurl}">文章</a> <a href="${feedcommenturl}">评论</a> </span></li>
        </ul>
    </div>	
						
		<!-- sidebar ends -->		
		</div>